#ifndef INPUTBUFFERSTREAM_H
#define INPUTBUFFERSTREAM_H
#include "inputstream.h"
#include <cstdlib>

#define BUFFER 4096 

class inputbufferstream:public inputstream
{
	int fd;
	int rcount;
	int current;
	int *readBuf;
	public:
	inputbufferstream()
	{
		fd = -1;
		rcount = 0;
		current = 0;
		readBuf = NULL;
	}

	virtual void  open_s(const char* fileName);
	virtual int read_next();
	virtual bool end_of_stream();
	virtual void close_i();

	virtual ~inputbufferstream(){};

};

#endif
